package com.chapter10.interface_.case_;

public class Camera implements USB{

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    //强制继承父类接口的方法
    public void open(){
        System.out.println("camera open");
    }

    public void close(){
        System.out.println("camera close");
    }

    @Override
    public String toString() {
        return "Camera{" +
                "name='" + name + '\'' +
                '}';
    }
}
